package IC.AST;

import java.util.ArrayList;
import java.util.List;

public class FieldsAndMethodsList {
	private ArrayList<Field> fields = new ArrayList<Field>();
    private ArrayList<Method> methods = new ArrayList<Method>();

	/**
	 * @param fields the list of fields to add
	 */
	public void AddField(List<Field> fields) {
		this.fields.addAll(fields);
	}
	/**
	 * @return the fields
	 */
	public ArrayList<Field> GetFieldsList() {
		return fields;
	}

	/**
	 * @param method the method to add
	 */
	public void AddMethod(Method method) {
		this.methods.add(method);
	}
	/**
	 * @return the methods
	 */
	public ArrayList<Method> GetMethodsList() {
		return methods;
	}
}
